package com.cz.shopping.manager.service;

import com.cz.shopping.model.dto.system.SysRoleDto;
import com.cz.shopping.model.entity.system.SysRole;
import com.github.pagehelper.PageInfo;

import java.util.Map;

// 业务接口
public interface SysRoleService {
    public abstract PageInfo<SysRole> findByPage(SysRoleDto sysRoleDto, Integer pageNum, Integer pageSize);


    void saveSysRole(SysRole sysRole);

    void updateSysRole(SysRole sysRole);

    void deleteById(Long roleId);

    Map<String, Object> findAllRoles(Long userId);
}